<?php
$this->breadcrumbs=array(
	'Galeria'=>array('index'),
        'Visualizar',
	$model->name,
);

echo $this->renderPartial('_menu', array('menu_users'=>$menu_users));
?>

<?php

$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
        'cssFile' => Yii::app()->baseUrl . '/themes/'.Yii::app()->theme->name.'/css/CDetailView.css',
	'attributes'=>array(
		'id',
		'name',
                'id_author',
		'author',
//    mostra img em minhatura
//                array(
//                    'label'=>'Link',
//                    'type'=>'image',
//                    'value'=> Yii::app()->baseUrl.'/images/'.$model->link,
//                ),
	),
));

               $arr[] = array(Yii::app()->baseUrl.'/images/'.$model->link,'alt'=>$model->link, 'htmlOptions'=>array('title'=>$model->name));
               
               $this->widget('application.extensions.galleria.Galleria', array(
                               'images'=>$arr,
                               'theme'=>'classic',
                               'options'=>array(
                               'image_margin'=>25,
                               'transition'=>'fade',
                             ),
                 ));


?>
